package com.yu.discovery;

import com.yu.annotation.SPI;

import java.net.InetSocketAddress;

/**
 * @PackageName: com.yu.discovery
 * @Description: 服务发现
 * @Version: v1.0.0
 * @Author: yuweilin
 * @Date: 21:25
 * <p>
 * Modification History:
 * Date         Author          Version            Description
 * ------------------------------------------------------------
 * 2021/2/5      yuweilin         v1.0.0               新建
 */
@SPI
public interface ServiceDiscovery {
    /**
     * 通过服务名字发现服务
     * @param rpcServiceName
     * @return
     */
    InetSocketAddress lookupService(String rpcServiceName);
}
